<template>
  <div class="dashboard-container" :style="{height: isInQiankun ? 'calc(100vh - 24px)': ''}">
    <div class="welcome">欢迎来到财务工作台</div>
  </div>
</template>

<script>
import setting from '@/settings'
import { mapState } from 'vuex'
export default {
  name: 'Dashboard',
  computed: {
    ...mapState({
      routes: state => state.permission.routes
    }),
    isInQiankun() {
      return window.__POWERED_BY_QIANKUN__ || setting.qunKunDebug
    }
  },
  mounted() {
    if (window.__POWERED_BY_QIANKUN__) {
      // 加载完毕 关闭loading
      this.$store.dispatch('global/setLoadingApp')
    }
  }
}
</script>

<style lang="scss" scoped>
  .dashboard-container {
    background: #ffffff;
    margin: 12px;
    width: calc(100% - 24px);
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    position: relative;
    .welcome {
      width: 100%;
      height: 50px;
      text-align: center;
      font-size: 32px;
    }
  }
</style>
